package com.tourlaid.mamagerment.service

import com.tourlaid.mamagerment.entity.Goods

/**
 * Created by xiaoyongge on 2017/7/21.
 */
interface GoodsService {

    fun queryForList(): List<Goods>?

    fun insert(goodsName: String?, controlNo: String?)

    fun getByName(goodsName: String?): Goods?

    fun getById(id: Long): Goods

    fun update(id: Long?, goodsName: String?, controlNo: String?)

    fun getByControlNo(controlNo: String?): Goods?

    fun queryByIdList(idList: List<Long?>): List<Goods>

    fun delete(id: Long?)

    fun queryAllGoods(): List<Goods>
}